﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EnqueteMobile.Repository.Database.Model
{
    [Table("Endereco")]
    public class Endereco
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long Id { get; set; }

        public long TipoDeEndereco { get; set; }
        
        [MaxLength(300)]
        [Required]
        public String Logradouro { get; set; }
        
        [MaxLength(10)]
        public String Numero { get; set; }
        
        [MaxLength(120)]
        public String Complemento { get; set; }
        
        [MaxLength(200)]
        public String Bairro { get; set; }
        
        [Required]
        public long Cidade { get; set; }
        
        [MaxLength(15)]
        public String CEP { get; set; }
        
        public Nullable<long> Pessoa { get; set; }
        
        [MaxLength(3000)]
        public String Comentarios { get; set; }
        
        public Boolean EnderecoPrincipal { get; set; }
        
        public DateTime DataHoraRegistro { get; set; }
    }
}